package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.Transient;
import java.io.Serializable;

/**
 * @Author: PengFei.He
 * @Date: 2024/11/6 19:48
 * @Function:
 */
@Data
@TableName("reserve")
public class Reserve implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("hotelId")
    private String hotelId;

    @TableField("userId")
    private String userId;

    @TableField("time")
    private String time;

    @Transient
    private String HotelName;
    @Transient
    private String userName;
}
